package com.xiguanlezz.cn.common.remote.client;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/19 16:19
 * @Description：RPC客户端状态枚举类
 */
@Getter
@AllArgsConstructor
public enum RpcClientStatus {
    /**
     * wait to init.
     */
    WAIT_INIT(0, "Wait to init server list factory..."),

    /**
     * already init.
     */
    INITIALIZED(1, "Server list factory is ready, wait to starting..."),

    /**
     * in starting.
     */
    STARTING(2, "Client already staring, wait to connect with server..."),

    /**
     * unhealthy.
     */
    UNHEALTHY(3, "Client unhealthy, may closed by server, in reconnecting"),

    /**
     * in running.
     */
    RUNNING(4, "Client is running"),

    /**
     * shutdown.
     */
    SHUTDOWN(5, "Client is shutdown");

    private int status;
    private String desc;

}
